package tfts

import "fmt"

func (f *Fight) YuumiPT() *Fight {
	pt := f.env["pt"]
	amp := pt.(int) * 30 * 18 / 10 / 5
	f.Add(UnqAmp(amp))
	return f
}

func Twist1() *Fight {
	c := Hero("Twist1")
	c.Add(AtkAmp(153))
	c.Add(AE(121))
	a := NewAction(c).Repeat(1).On(BeforeCastE)
	a.AddCall("RIP", func(fight *Fight) {
		atkTimes := fight.AtkTimes
		a.ApDmg = fmt.Sprintf("30*(atk-%d)", atkTimes)
		TraceLog("%4.1f秒:[RIP]ApDmg=%s\n", fight.Current(), a.ApDmg)
	})
	a.AdDmg = "4*135"
	a.ApDmg = "4*30*atk"
	a.TraceAction("Explode")
	return c
}
